//
//  UIColor+Extend.h
//  Wifi
//
//  Created by muxi on 14/11/19.
//  Copyright (c) 2014年 muxi. All rights reserved.
//

#import <UIKit/UIKit.h>

#define ColorRGB(r,g,b) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:1.0f]
#define ColorRGBa(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define ColorHex(colorString) [UIColor colorWithHexColorString:colorString]
#define ColorHexa(colorString,a) [UIColor colorWithHexColorString:colorString alpha:a];

@interface UIColor (Extend)


/**
 *  随机颜色 alpha为1
 */
+ (UIColor *)colorRandom;

/**
 *  随机颜色、alpha
 */
+ (UIColor *)colorAlphaRandom;

/**
 *  十六进制颜色
 */
+ (UIColor *)colorWithHexColorString:(NSString *)hexColorString;

/**
 *  十六进制颜色:含alpha
 */
+ (UIColor *)colorWithHexColorString:(NSString *)hexColorString alpha:(float)alpha;

@end
